// 专门封装用户相关的 API 接口
import request from '@/utils/request.js'

// 封装一个 获取文章分类的接口
export const getCateListAPI = () => request.get('/my/cate/list')

// 添加分类的ＡＰＩ
export const addCateListAPI = obj => request.post('/my/cate/add', obj)

// 修改分类的API
export const editCateListAPI = obj => request.put('/my/cate/info', obj)
// 删除文章接口
export const deleteCateAPI = (id) => request.delete('/my/cate/del', { params: { id } })
